package asava.trees;

import asava.names.Name;

/**
 * @author Tim Richter
 */
public final class Select extends Tree {
    public Tree selector;
    public Name name;

    public Select(final Tree selector,
                  final Name name) {
        this.selector = selector;
        this.name = name;
    }

    @Override
    public int kind() {
        return TreeKind.SELECT;
    }

    @Override
    public void accept(final TreeVisitor visitor) {
        visitor.visit(this);
    }
}
